package com.honeyms.project.blog.blogcontentdetail.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.honeyms.framework.aspectj.lang.annotation.Excel;
import com.honeyms.framework.web.domain.BaseEntity;

/**
 * 帖子详情对象 blog_content_detail
 * 
 * @author honeyms
 * @date 2020-10-14
 */
public class BlogContentDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 帖子id */
    @Excel(name = "帖子id")
    private Long contentId;

    /** 帖子标题 */
    @Excel(name = "帖子标题")
    private String title;

    /** 评论数量 */
    @Excel(name = "评论数量")
    private Long commentsNum;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long createdId;

    /** 最近修改人id */
    @Excel(name = "最近修改人id")
    private Long editId;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date editDate;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 点击量 */
    @Excel(name = "点击量")
    private Long views;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long zan;

    /** 收藏数 */
    @Excel(name = "收藏数")
    private Long favorites;

    public void setContentId(Long contentId)
    {
        this.contentId = contentId;
    }

    public Long getContentId()
    {
        return contentId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setCommentsNum(Long commentsNum)
    {
        this.commentsNum = commentsNum;
    }

    public Long getCommentsNum()
    {
        return commentsNum;
    }
    public void setCreatedId(Long createdId)
    {
        this.createdId = createdId;
    }

    public Long getCreatedId()
    {
        return createdId;
    }
    public void setEditId(Long editId)
    {
        this.editId = editId;
    }

    public Long getEditId()
    {
        return editId;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setEditDate(Date editDate)
    {
        this.editDate = editDate;
    }

    public Date getEditDate()
    {
        return editDate;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setViews(Long views)
    {
        this.views = views;
    }

    public Long getViews()
    {
        return views;
    }
    public void setZan(Long zan)
    {
        this.zan = zan;
    }

    public Long getZan()
    {
        return zan;
    }
    public void setFavorites(Long favorites)
    {
        this.favorites = favorites;
    }

    public Long getFavorites()
    {
        return favorites;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("contentId", getContentId())
            .append("title", getTitle())
            .append("commentsNum", getCommentsNum())
            .append("createdId", getCreatedId())
            .append("editId", getEditId())
            .append("createDate", getCreateDate())
            .append("editDate", getEditDate())
            .append("status", getStatus())
            .append("views", getViews())
            .append("zan", getZan())
            .append("like", getFavorites())
            .toString();
    }
}
